package com.lks.investor.service;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.lks.common.util.PageInfoUtil;
import com.lks.investor.pojo.ABank;
import com.lks.investor.pojo.AGrant;
import com.lks.investor.pojo.AInvestor;
import com.lks.investor.pojo.AInvestorBank;

public interface IInvestorService
{
	/*--------------------------------------------------------------银行表的开始-------------------------------------------------*/
	/**
	 * 银行信息插入
	 * 
	 * @param bank
	 * @return
	 */
	JSONObject insertOneBankService(ABank bank);

	/**
	 * 银行信息更新
	 * 
	 * @param bank
	 * @return
	 */
	JSONObject updateOneBankService(ABank bank);

	/**
	 * 银行信息删除
	 * 
	 * @param bank
	 * @return
	 */
	JSONObject deleteOneBankService(ABank bank);

	/**
	 * 银行信息查询
	 * 
	 * @param condMap
	 * @return
	 */
	ABank findOneBankService(Map<String, Object> condMap);

	/**
	 * 查询多个银行信息
	 * 
	 * @param pageInfoUtil
	 * @param condMap
	 * @return
	 */
	List<ABank> findCondListBankService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
	/*--------------------------------------------------------------银行表的结束-------------------------------------------------*/

	/*--------------------------------------------------------------授权表的开始-------------------------------------------------*/
	/**
	 * 授权信息插入
	 * 
	 * @param grant
	 * @return
	 */
	JSONObject insertOneGrantService(AGrant grant);

	/**
	 * 授权信息更新
	 * 
	 * @param grant
	 * @return
	 */
	JSONObject updateOneGrantService(AGrant grant);

	/**
	 * 授权信息删除
	 * 
	 * @param grant
	 * @return
	 */
	JSONObject deleteOneGrantService(AGrant grant);

	/**
	 * 授权信息查询
	 * 
	 * @param condMap
	 * @return
	 */
	AGrant findOneGrantService(Map<String, Object> condMap);

	/**
	 * 查询多个授权信息
	 * 
	 * @param pageInfoUtil
	 * @param condMap
	 * @return
	 */
	List<AGrant> findCondListGrantService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
	/*--------------------------------------------------------------授权表的结束-------------------------------------------------*/
	
	/*--------------------------------------------------------------出资方表的结束-------------------------------------------------*/
	/**
	 * 授权信息插入
	 * 
	 * @param investor
	 * @return
	 */
	JSONObject insertOneInvestorService(AInvestor investor);

	/**
	 * 授权信息更新
	 * 
	 * @param investor
	 * @return
	 * @throws IOException 
	 * @throws FileNotFoundException 
	 */
	JSONObject updateOneInvestorService(AInvestor investor,Map<String, Object> paramMap) throws FileNotFoundException, IOException;

	/**
	 * 授权信息删除
	 * 
	 * @param investor
	 * @return
	 */
	JSONObject deleteOneInvestorService(AInvestor investor);

	/**
	 * 授权信息查询
	 * 
	 * @param condMap
	 * @return
	 */
	AInvestor findOneInvestorService(Map<String, Object> condMap);

	/**
	 * 查询多个授权信息
	 * 
	 * @param pageInfoUtil
	 * @param condMap
	 * @return
	 */
	List<AInvestor> findCondListInvestorService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
	/*--------------------------------------------------------------出资方g表的结束-------------------------------------------------*/
	
	/*------------------------------------------------------出资方银行表--------------------------------------------------------*/
	/**
	 * 授权信息插入
	 * 
	 * @param investorBank
	 * @return
	 */
	JSONObject insertOneInvestorBankService(AInvestorBank investorBank);

	/**
	 * 授权信息更新
	 * 
	 * @param investorBank
	 * @return
	 */
	JSONObject updateOneInvestorBankService(AInvestorBank investorBank);

	/**
	 * 授权信息删除
	 * 
	 * @param investorBank
	 * @return
	 */
	JSONObject deleteOneInvestorBankService(AInvestorBank investorBank);

	/**
	 * 授权信息查询
	 * 
	 * @param condMap
	 * @return
	 */
	AInvestorBank findOneInvestorBankService(Map<String, Object> condMap);

	/**
	 * 查询多个授权信息
	 * 
	 * @param pageInfoUtil
	 * @param condMap
	 * @return
	 */
	List<AInvestorBank> findCondListInvestorBankService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
	/*------------------------------------------------------出资方银行表--------------------------------------------------------*/
	
	
	
}
